/**
 * Created by ZE-C on 2017/8/12.
 */
import {Component} from "@angular/core";
import {ActivatedRoute, Router} from "@angular/router";

/**
 * Created by ZE-C on 2017/8/12.
 */


@Component({
  selector: 'subpage2',
  template: `
    <div class="z-box">
      subpage2
    </div>
    <button (click)="goBack()">back</button>
  `,
  styleUrls: []
})
export class SubPage2Component {
  name: string;

  constructor( routeinfo:ActivatedRoute){

  }

  goBack(){}

  ngOnDestroy(): void {
    console.log('subpage2: OnDestroy()')
  }

}
